home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 008 / src / hack.stat.c < prev    next >
Text File  |  1995-03-17  |  829b  |  21 lines

  1. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */
  2.  
  3. gethdate(name) char *name; {
  4. /* register char *np;                                  */
  5. /*    if(stat(name, &hbuf))                            */
  6. /*       error("Cannot get status of %s.",             */
  7. /*          (np = index(name, '/')) ? np+1 : name);    */
  8. }
  9.  
  10. uptodate(fd) {
  11. /*    if(fstat(fd, &buf)) {                            */
  12. /*       pline("Cannot get status?");                  */
  13. /*       return(0);                                    */
  14. /*    }                                                */
  15. /*    if(buf.st_ctime < hbuf.st_ctime) {               */
  16. /*       pline("Saved level is out of date.");         */
  17. /*       return(0);                                    */
  18. /*    }                                                */
  19.    return(1);
  20. }
  21.